using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace InvestmentIntelligence.DbModel.Models
{
    [Table("FxSerie", Schema = "MarketData")]
    public class FxSerie
    {
        [Key, Column(Order=0)]
        public int CurrencyId { get; set; }

        [Key, Column(Order = 1)]
        public System.DateTime Date { get; set; }
        public decimal FxRateInUsd { get; set; }

        [ForeignKey("CurrencyId")]
        public virtual Currency Currency { get; set; }
    }
}
